﻿@model IEnumerable<CVsharp.DWZMvc.Models.DSA_DrugStore>
@{
    ViewBag.Title = "药房列表";
    ViewBag.pagerformaction = "/DrugStoreManage/Index/";
    ViewBag.searchaction = "/DrugStoreManage/Index/";
    ViewBag.currentpagenum = Model.Count();
    Layout = "~/Views/Shared/Dwz/_DwzTableLayout.cshtml";
    int No = (ViewBag.pageNum - 1) * ViewBag.numPerPage+1;
}
@section searchbar{
    <table class="searchContent">
        <tr>
            <td>
                快捷搜索：<input type="text" name="keyword"  value="@(ViewBag.keywords)"/>
            </td>
            <td>
                开办日期：<input type="text" name="opentime" class="date" readonly="true" value="@(ViewBag.opentime)"/>
            </td>
            <td>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            检索</button></div>
                </div>
            </td>
        </tr>
    </table>
}
@section topbutton{
    <li><a class="add" href="@Url.Action("Create", "DrugStoreManage")" target="navTab"><span>
        添加</span></a></li>
    <li><a class="delete" href="DrugStoreManage/Delete/{sid_user}" target="ajaxTodo"
        title="确定要删除吗?"><span>删除</span></a></li>
    <li><a class="delete" href="DrugStoreManage/Delete/" title="确实要删除这些记录吗?" target="selectedTodo"
        rel="ids" posttype=""><span>批量删除删除</span></a></li>
    <li><a class="edit" href="DrugStoreManage/Edit/{sid_user}" rel="DrugStoreManage-Edit"
        target="dialog"><span>修改</span></a></li>
    <li class="line">line</li>
    <li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targettype="navTab"
        title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
}
<table class="table" width="100%" layoutH="128" >
<thead>
    <tr>
        <th width="22">
            <input type="checkbox" group="ids" class="checkboxCtrl">
        </th>
        <th width="40" class="asc">序号</th>
        <th width="80">名称</th>
        <th width="120">详细地址</th>
        <th width="80">负责人</th>
        <th width="100">开办时间</th>
        <th width="100" align="center" orderfield="accountLevel">最后评估时间</th>
        <th width="70">操作</th>
    </tr>
</thead>
<tbody>
    @foreach (var item in Model)
    {
        <tr target="sid_user" rel="@item.DrugStoreID">
            <td>
                <input name="ids"  type="checkbox" value="@(item.DrugStoreID)" />
            </td>
            <td>
                @(No++)
            </td>
            <td>
                @item.Name
            </td>
            <td>
                @item.Address
            </td>
            <td>
                @item.ResponsiblePerson
            </td>
            <td>
                @(item.GreateDate != null ? item.GreateDate.Value.ToString("yyyy-MM-dd") : "")
            </td>
            <td>
                @(item.LastGradeDate != null ? item.LastGradeDate.Value.ToString("yyyy-MM-dd") : "")
            </td>
            <td>
                <a title="删除" target="ajaxTodo" href="DrugStoreManage/Delete/@item.DrugStoreID" class="btnDel">
                    删除</a> <a title="编辑" target="dialog" href="DrugStoreManage/Edit/@(item.DrugStoreID)?m=dialog" class="btnEdit">
                        编辑</a>
            </td>
        </tr>
    }
</tbody>
</table>